<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-reg.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/info-mgt.css" />
    <link rel="stylesheet" href="css/WdatePicker.css" />
<title>毕业生简历管理系统</title>
<style type="text/css">
	.error{
		color:Red;
		font-size:13px;
		margin-left:5px;
		padding-left:16px; 
	}
    #hd .hd-wrap{
        background: cadetblue !important;
    }
</style>
</head>
<body>
<div id="container">
    <div id="hd">
        <div class="hd-wrap ue-clear">
            <div class="top-light"></div>
            <h1>毕业生简历后台系统</h1>
            <div class="login-info ue-clear">
                <div class="welcome ue-clear"><span>欢迎您,</span><a href="candidateManage" class="user-name">${sessionScope.admin.account}</a></div>
            </div>
            <div class="toolbar ue-clear">
                <a href="employerExit" class="quit-btn exit"></a>
            </div>
        </div>
    </div>
    <div id="bd">
        <div class="wrap ue-clear">
            <div class="sidebar">
                <h2 class="sidebar-header"><p>功能导航</p></h2>
                <ul class="nav">
                    <li class="manage_c"><div class="nav-header" onclick="candidateSkip1()"><a class="ue-clear"><span>毕业生管理</span></a></div></li>
                    <li class="manage_e"><div class="nav-header" onclick="candidateSkip2()"><a class="ue-clear"><span>用人单位管理</span></a></div></li>
                    <li class="modify_a"><div class="nav-header" onclick="candidateSkip3()"><a class="ue-clear"><span>个人信息修改</span></a></div></li>
                </ul>
            </div>
            <div class="content">
                <div class="title">
                    <h2>企业信息修改</h2>
                </div>
                <form id="fm" method="post" action="adminUpdateEmployer">
                    <div class="main">
                        <input name="e_id" hidden value="${employer.e_id }">
                        <p class="short-input ue-clear">
                            <label style="text-align: center">公司名称：</label>
                            <input name="name" type="text" value="${employer.name }"/>
                        </p>
                        <p class="short-input ue-clear">
                            <label style="text-align: center">账户密码：</label>
                            <input name="password" type="text" value="${employer.password }"/>
                        </p>
                        <p class="short-input ue-clear">
                            <label>公司地址：</label>
                            <input name="address" type="text" value="${employer.address }"/>
                        </p>
                        <p class="long-input ue-clear">
                            <label>联系方式：</label>
                            <input name="phone_number" type="text" value="${employer.phone_number }"/>
                        </p>
                        <p class="long-input ue-clear">
                            <label>电子邮箱：</label>
                            <input name="email" type="text" value="${employer.email }"/>
                        </p>
                        <p class="long-input ue-clear">
                            <label>成立时间：</label>
                            <input name="etb_time" type="text" value="${employer.etb_time }"/>
                        </p>
                        <p class="long-input ue-clear">
                            <label>法人代表：</label>
                            <input name="legal_rep" type="text" value="${employer.legal_rep }"/>
                        </p>
                        <p class="short-input ue-clear">
                            <label>公司简介：</label>
                            <textarea name="profile" style="height:150px">${employer.profile }</textarea>
                        </p>
                        <div class="btn ue-clear">
                            <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="修改"/>
                            <%--                            <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="button" onclick="employerSkip3()" value="发布"/>--%>
                            <%--                            <input style="height:50px;width:150px;background-color:#8eb2d2;color:white;border-radius:10px" type="button" onclick="employerSkip4()" value="撤销"/>--%>
                        </div>
                    </div>
                </form>
            </div>
            <div class="pagination ue-clear"></div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
    function candidateSkip1(){  location.href="candidateManage"}
    function candidateSkip2(){  location.href="employerManage"}
    function candidateSkip3(){ const a_id="${sessionScope.admin.a_id}"; location.href="adminUpdate?a_id="+a_id}

    const  msg="${modifyMessage}";
    if(msg){
        alert(msg);
    }
</script>
<script>
</script>
<%--<script type="text/javascript">--%>
<%--$(function(){		--%>
<%--	var $trade = $("<select name='trade' style='width:200px;height:30px;border:1px solid #C5D6E0'></select>");--%>
<%--	var $salary = $("<select name='salary' style='width:200px;height:30px;border:1px solid #C5D6E0'></select>");--%>
<%--    $("#zhuanye").append($trade);--%>
<%--    $("#xinzi").append($salary);--%>
<%--    var a = new Array();--%>
<%--    var b = new Array();--%>
<%--    var temp;--%>
<%--    a[0] = "软件工程师";--%>
<%--    a[1] = "会计";--%>
<%--    a[2] = "文员";--%>
<%--    a[3] = "客户经理";--%>
<%--    a[4] = "网站策划";--%>
<%--    a[5] = "平面设计师";--%>

<%--    b[0] = "3000-4000";--%>
<%--    b[1] = "4001-5000";--%>
<%--    b[2] = "5001-6000";--%>
<%--    b[3] = "6001-7000";--%>
<%--    b[4] = "7001-8000";--%>
<%--    var c_trade = "${company.trade}";--%>
<%--    var c_salary = "${company.salary}";--%>
<%--    $.each(a,function(index,value){--%>
<%--        if(c_trade===value){--%>
<%--        	temp = a[0];--%>
<%--        	a[0] = a[index];--%>
<%--        	a[index]= temp;--%>
<%--        }--%>
<%--   });--%>
<%--    $.each(b,function(index,value){--%>
<%--        if(c_salary===value){--%>
<%--        	temp = b[0];--%>
<%--        	b[0] = b[index];--%>
<%--        	b[index]= temp;--%>
<%--        }--%>
<%--   });--%>
<%--    // 添加选项--%>
<%--    $.each(a,function(index,value){--%>
<%--        	$("<option></option>").val(value).text(value).appendTo($($trade));--%>
<%--   });--%>

<%--    $.each(b,function(index,value){--%>
<%--    	$("<option></option>").val(value).text(value).appendTo($($salary));--%>
<%--	});--%>
<%--});--%>

<%--showRemind('input[type=text], textarea','placeholder');--%>

<%--$( "#fm" ).validate({--%>
<%--    rules: {--%>
<%--        name: {--%>
<%--	         required:true--%>
<%--	    },--%>
<%--        location: {--%>
<%--	         required:true--%>
<%--        },--%>
<%--        phone: {--%>
<%--      	  required:true  --%>
<%--	    }--%>
<%--    },--%>
<%--    messages: {--%>
<%--        name: {--%>
<%--            required: "*不能为空！"--%>
<%--	      },		      --%>
<%--	    location: {--%>
<%--            required: "*不能为空！"--%>
<%--	    },--%>
<%--	    phone: {--%>
<%--	        required: "*不能为空！"--%>
<%--		}--%>
<%--    }--%>
<%--});--%>
<%--</script>--%>

</html>
